<style lang="less" scoped>
	.indexTop{
		width: 100%;
		background-color: white;
		position: fixed;
		z-index: 1000;
		padding-bottom:10px ;
		left:0;
		.container{
			width: 96%;
			margin-left: 2%;
			display: flex;
			justify-content: space-between;
			
			[class^='icon']{
				width: 6%;
				img{
					width: 100%;
				}
				margin-top: 2px;
			}
			.search{
				position: relative;
				width: 80%;
				height: 30px;
				background-color: rgba(204, 204, 204,.6);
				border-radius: 16px;
				.icon3{
					margin-top: 2px;
					margin-left: 8px;
					width: 6%;
					.img{
						width: 100%;
					}
				}
				
			}
		}
	}
	
</style>
<template>
	<view class="indexTop">
		<view class="container">
			<div class="icon1">
				<img src="../static/list.png" alt="" />
			</div>
			<div class="search" @click="toSearch">
				<div class="icon3">
					<img src="../static/search.png" alt="" />
				</div>
				<span></span>
			</div>
			<div class="icon2">
				<img src="../static/shao.png" alt="" />
			</div>
		</view>
	</view>
	
</template>

<script>
	export default {
		name:"indexTop",
		data() {
			return {
				
			};
		},
		methods:{
			toSearch(){
				uni.navigateTo({
					url:"/pages/search/search"
				})
			}
			
		}
	}
</script>

